<?php
class Job extends AppModel {

	var $name = 'Job';

	//The Associations below have been created with all possible keys, those that are not needed can be removed
	var $belongsTo = array(
			'Employer' => array('className' => 'Employer',
								'foreignKey' => 'employer_id',
								'conditions' => '',
								'fields' => '',
								'order' => ''
			),
			'Template' => array('className' => 'Template',
								'foreignKey' => 'template_id',
								'conditions' => '',
								'fields' => '',
								'order' => ''
			),
			'City' => array('className' => 'City',
								'foreignKey' => 'city_id',
								'conditions' => '',
								'fields' => '',
								'order' => ''
			),
			'Academic' => array('className' => 'Academic',
								'foreignKey' => 'academic_id',
								'conditions' => '',
								'fields' => '',
								'order' => ''
			)
	);

	var $hasMany = array(
			'Applicant' => array('className' => 'Applicant',
								'foreignKey' => 'job_id',
								'dependent' => false,
								'conditions' => '',
								'fields' => '',
								'order' => '',
								'limit' => '',
								'offset' => '',
								'exclusive' => '',
								'finderQuery' => '',
								'counterQuery' => ''
			),
            'Clipboard' => array('className' => 'Clipboard',
                                'foreignKey' => 'job_id',
                                'dependent' => false,
                                'conditions' => '',
                                'fields' => '',
                                'order' => '',
                                'limit' => '',
                                'offset' => '',
                                'exclusive' => '',
                                'finderQuery' => '',
                                'counterQuery' => ''
            )            
	);

	var $hasAndBelongsToMany = array(
			'Field' => array('className' => 'Field',
						'joinTable' => 'fields_jobs',
						'foreignKey' => 'job_id',
						'associationForeignKey' => 'field_id',
						'unique' => true,
						'conditions' => '',
						'fields' => '',
						'order' => '',
						'limit' => '',
						'offset' => '',
						'finderQuery' => '',
						'deleteQuery' => '',
						'insertQuery' => ''
			),
			'Skill' => array('className' => 'Skill',
						'joinTable' => 'job_requirements',
						'foreignKey' => 'job_id',
						'associationForeignKey' => 'skill_id',
						'unique' => true,
						'conditions' => '',
						'fields' => '',
						'order' => '',
						'limit' => '',
						'offset' => '',
						'finderQuery' => '',
						'deleteQuery' => '',
						'insertQuery' => ''
			)
	);

}
?>